//
//  UserInfoFor0Cell.m
//  MooreDoll
//
//  Created by 郭景豪 on 2014/12/22.
//  Copyright (c) 2014年 Tank. All rights reserved.
//

#import "UserInfoFor0Cell.h"
#import "WriteToFileImage.h"
@implementation UserInfoFor0Cell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (IBAction)touchTakePhoto:(id)sender {
    
    [self takePhoto:self.photoButton];
    [self.photoButton touchMe];
    
}
- (IBAction)takePhoto:(TakePhotoButton *)sender {
    
    if (sender.delegate!=self) {
        sender.delegate = self;
    }
}
-(void)TakePhotoButtonOpenCamera:(UIImagePickerController *)camera
{
    [self.delegate cellTakePhotoButtonOpenCamera:camera];
}
-(void)TakePhotoButtonOpenPhotoLibrary:(UIImagePickerController *)PhotoLibrary
{
    [self.delegate cellTakePhotoButtonOpenPhotoLibrary:PhotoLibrary];
}
-(void)TakePhotoAlertDismissVC
{
    [self.delegate cellTakePhotoAlertDismissVC];
}
-(void)takePhotoClance
{
    [self.delegate cellTakePhotoClance];
}

@end
